; Welcome user, tell which version of 303tracker will be installed
REQUEST_NOTIFY "Welcome to the 303tracker installer." "This program will install:" "" "303tracker Beta Version 0.12" "Continue"
; Tell the user which specs it needs
REQUEST_NOTIFY "303tracker needs 2 megabytes of" "harddrive-space for installation." "You can now select where to install" "303tracker." "Select Path"
; Ask the user where to install 303tracker
REQUEST_DIR "Ram:" "Select path to install 303tracker." "A new directory WILL be created." "Accept" "Abort" "Parent" "Volumes"
IF RESULT = -1
CALL "ABORT"
ENDIF
; Set the destination-path to the previous specified one
SET_DESTPATH RESULT
; Check if there's enough free space in current dest-path (in kilobytes)
CHECK_FREE RESULT 4096
IF RESULT = -1
REQUEST_NOTIFY "Installation has been cancelled!" "To install 303tracker, you need at" "least 4 megabytes of free space on" "your harddrive. Be sure next time!" "Abort Installation"
CALL "ABORT"
ENDIF
; Make a new directory in the destination-path with .info file (1)
MAKE_DIR "303trackerV0.12" 1
; Add the just created dir to the Destpath
SET_DESTPATH RESULT
; Write down the destination-path in the log-file
MESSAGE "Current destination-path:"
MESSAGE RESULT
; Reset the sourcepath to the program-startup-path
; The following procedure executes the Install-Abort
PROC_BEG "ABORT"
MESSAGE "Installation Aborted!"
REQUEST_NOTIFY "Installation aborted!" "" "Just restart this installation-program" "when you think it's possible again." "Bye"
STOP_MODULE
HIDE_PIC 12 120 320 128
SCRIPT_END
PROC_END
; The following procedure executes a 100% complete installation-end
PROC_BEG "COMPLETE"
MESSAGE "Installation Completed 100% Ok"
PROGRESS 100
REQUEST_NOTIFY "Installation complete!" "" "Everything installed 100% successfull." "You can start 303tracker from Workbench." "Great!"
REQUEST_NOTIFY "You can find the log-file in your" "303tracker directory. This file contains" "all information of actions that were" "made to install 303tracker." "Exit Installer"